package org.summer.lawyer.domain.bo.payapp;

import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.summer.common.mybatis.core.domain.BaseEntitySearch;
import org.summer.lawyer.domain.PayApp;

import java.io.Serial;

/**
 * 支付应用业务对象 pay_app
 *
 * @author summer
 * @date 2024-06-21
 */
@Schema(title ="支付应用视图对象 pay_app", description = "支付应用视图对象 pay_app")
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayApp.class, reverseConvertGenerate = false)
public class PayAppBo extends BaseEntitySearch {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Schema(title = "appId", type = "Long", description = "主键ID")
    //@NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long appId;

    /**
     * 应用名称
     */
    @Schema(title = "appName", type = "String", description = "应用名称")
    //@NotBlank(message = "应用名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appName;

    /**
     * 备注
     */
    @Schema(title = "remark", type = "String", description = "备注")
    //@NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 支付结果回调
     */
    @Schema(title = "payNotifyUrl", type = "String", description = "支付结果回调")
    //@NotBlank(message = "支付结果回调不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payNotifyUrl;

    /**
     * 退款结果回调
     */
    @Schema(title = "refundNotifyUrl", type = "String", description = "退款结果回调")
    //@NotBlank(message = "退款结果回调不能为空", groups = { AddGroup.class, EditGroup.class })
    private String refundNotifyUrl;

    /**
     * 转账结果回调
     */
    @Schema(title = "transferNotifyUrl", type = "String", description = "转账结果回调")
    //@NotBlank(message = "转账结果回调不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transferNotifyUrl;

    /**
     * 商户号
     */
    @Schema(title = "mchNo", type = "String", description = "商户号")
    //@NotBlank(message = "商户号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mchNo;

    /**
     * 商户名称
     */
    @Schema(title = "mchName", type = "String", description = "商户名称")
    //@NotBlank(message = "商户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mchName;

    /**
     * 私钥
     */
    @Schema(title = "appSecret", type = "String", description = "私钥")
    //@NotBlank(message = "私钥不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appSecret;

    /**
     * 状态(0停用，1启用）
     */
    @Schema(title = "status", type = "String", description = "状态(0停用，1启用）")
    //@NotBlank(message = "状态(0停用，1启用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
